%option noyywrap
%{
#include "Thompson.tab.h"
#include "astnodes.h"
%}

%%
[\ \t\n] {}
"\\0" {
    yylval.char_val = 0;
    return CHAR;
}
"|" {return OR;}
"*" {return STAR;}
"(" {return LPAREN;}
")" {return RPAREN;}
";" {return SEMICOLON;}
. {
    yylval.char_val = yytext[0];
    return CHAR;
}
%%